package service.local;

import java.util.List;

import javax.ejb.Local;

import model.Candidate;
import model.Comment;
import model.Position;
import service.ServiceException;
@Local
public interface PositionService {
	Position insertPosition(Position Position);

	Position updatePosition(Position Position);

	void deletePosition(Position Position);
	
	List<Position> getAll();
	
	List<Candidate> getCandidatesForPosition(Long id);
	
	List<Comment> getCommentsForPosition(Long id);
	
	List<Position> getActivePositions();
	
	List<Position> getInactivePositions();
	
	List<Position> getApprovedPositions();
	
	List<Position> getUnApprovedPositions();
	
	void approvePosition(Long id);
	
	void deactivatePosition(Long id);
	
	void selectCandidate(Long id,Candidate c);
	
	public void addCommentToPosition(Long id, Comment c);
	
	public Position getById(Long id);
	
	
	public Position getPositionByName(String position);

}
